﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Script.Serialization;

namespace MVCTask.Models
{
    public class Task
    {
        public int ID { get; set; }
        public string Description { get; set; }
        public string Details { get; set; }
        public int StatusId { get; set; }
        public Status Status { get; set; }
        public int CategoryId { get; set; }
        public Category Category { get; set; }
        public string User { get; set; }
    }

    public class Status
    {
        public int ID { get; set; }
        public string Description { get; set; }
        public virtual ICollection<Task> Tasks { get; set; }
        public string User { get; set; }
    }

    public class Category
    {
        public int ID { get; set; }
        public string Description { get; set; }
        public virtual ICollection<Task> Tasks { get; set; }
        public string User { get; set; }
    }
}